package com.xinzhidi.web.dataset.domain.po;

import com.xinzhidi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;


/**
 * 数据设置查询对象
 *
 * @author cx
 * @date 2023-06-27
 */
@ApiModel(value = "数据设置查询对象")
@Data
@EqualsAndHashCode(callSuper = false)
public class DataSetPo {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "小区id")
    @NotNull(message = "小区id不能为空")
    private Long plotId;

    @ApiModelProperty(value = "楼栋id")
    private Long buildId;

    @ApiModelProperty(value = "单元id")
    private Long unitId;

    @ApiModelProperty(value = "类型（0：小区  1：楼栋  2：单元  3：住户）")
    @Excel(name = "类型")
    private String type;

}
